﻿using Puppy.DependencyInjection;
using Puppy.Domain.Entities;

namespace Puppy.ActorDb
{
    public abstract class ActorDbContext : IActorDbContext, ISingletonDependency
    {
        public IActorDatabase Database { get; private set; }

        public virtual IActorSet<TEntity> Collection<TEntity>()
            where TEntity : class, IEntity
        {
            return Database.Collection<TEntity>();
        }
    }
}
